package com.ruoyi.bluebera.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 汇率记录对象 biz_exchange_rates
 * 
 * @author ruoyi
 * @date 2025-07-27
 */
public class BizExchangeRates extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 币种符号 */
    @Excel(name = "币种符号")
    private String tokenSymbol;

    /** 币种所属网络 */
    @Excel(name = "币种所属网络")
    private String network;

    /** 兑换bluebera汇率 */
    @Excel(name = "兑换bluebera汇率")
    private BigDecimal rateToBluebera;

    /** 建立时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "建立时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /*
    public BizExchangeRates(String tokenSymbol, String network, BigDecimal rateToBluebera, Date createdAt) {
        this.tokenSymbol = tokenSymbol;
        this.network = network;
        this.rateToBluebera = rateToBluebera;
        this.createdAt = createdAt;
    }
    */

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTokenSymbol(String tokenSymbol) 
    {
        this.tokenSymbol = tokenSymbol;
    }

    public String getTokenSymbol() 
    {
        return tokenSymbol;
    }

    public void setNetwork(String network) 
    {
        this.network = network;
    }

    public String getNetwork() 
    {
        return network;
    }

    public void setRateToBluebera(BigDecimal rateToBluebera) 
    {
        this.rateToBluebera = rateToBluebera;
    }

    public BigDecimal getRateToBluebera() 
    {
        return rateToBluebera;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tokenSymbol", getTokenSymbol())
            .append("network", getNetwork())
            .append("rateToBluebera", getRateToBluebera())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
